package com.gaoxinfu.demo.jackson.entity;

import com.fasterxml.jackson.annotation.JsonIdentityInfo;
import com.fasterxml.jackson.annotation.ObjectIdGenerators;

import javax.persistence.Entity;
import javax.persistence.Id;

/**
 * @Description:
 * @Author: gaoxinfu
 * @Date: 2021-01-08 17:48
 */
@JsonIdentityInfo(
        generator = ObjectIdGenerators.PropertyGenerator.class,//TODO test
        property = "id")
@Entity
public class Head {
    @Id
    private String id;
}